<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><#if op?? && op="edit">修改【${(user.username)!""}】<#else>新增</#if>会员</title>
	<link href="/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div class="place">
    	<span>位置：</span>
	    <ul class="placeul"><li><a href="/index.html">首页</a></li><li><#if op?? && op="edit">修改【${(user.username)!""}】<#else>新增</#if>会员</li></ul>
    </div>
    <br><br>
	<form action="/user/info/save.html" method="post">
		<input name="id" type="hidden" value="${(user.id)!""}">
	    <ul class="forminfo">
		    <li>
		    	<label>用户名：</label>
		    	<input name="username" type="text" class="scinput input-lg" value="${(user.username)!""}"  autocomplete="off" />
		    	<i><font class="font-red">*</font></i>
		    </li>
		    <#if op?? && op="add">
		    <li>
		    	<label>初始密码：</label>
		    	<input name="password" type="password" class="scinput input-lg" value="" autocomplete="off" />
		    	<i><font class="font-red">*</font></i>
		    </li>
		    </#if>
		    <li>
		    	<label>手机号码：</label>
		    	<input name="mobile" type="text" class="scinput input-lg" value="${(user.mobile)!""}"  autocomplete="off" />
		    	<i><font class="font-red">*</font></i>
		    </li>
		    <li>
		    	<label>真实姓名：</label>
		    	<input name="realname" type="text" class="scinput input-lg" value="${(user.realname)!""}"  autocomplete="off" />
		    </li>
		    <li>
		    	<label>出生日期：</label>
		    	<input name="birthday" type="text" class="scinput input-lg" value="<#if user.birthday?exists>${(user.birthday)?string("yyyy-MM-dd")}<#else>--</#if>"  autocomplete="off" />
		    </li>
		    <li>
		    	<label>邮箱地址：</label>
		    	<input name="email" type="text" class="scinput input-lg" value="${(user.email)!""}"  autocomplete="off" />
		    </li>
		    <li>
		    	<label>会员类型：</label>
		    	<select class="select-form" name="type" >
				    <option value=1 <#if (user.type)?? && (user.type)?number ==1>selected="selected"</#if>>酒坊会员</option>
				    <option value=2 <#if (user.type)?? && (user.type)?number ==2>selected="selected"</#if>>酒坊大使</option>
			    </select>
		    </li>
		    <li>
		    	<label>性&ensp;&ensp;别：</label>
		    	<select class="select-form" name="gender" >
				    <option value="">请选择性别</option>
				    <option value=1 <#if (user.gender)?? && (user.gender)?number ==1>selected="selected"</#if>>男</option>
				    <option value=2 <#if (user.gender)?? && (user.gender)?number ==2>selected="selected"</#if>>女</option>
				    <option value=3 <#if (user.gender)?? && (user.gender)?number ==3>selected="selected"</#if>>保密</option>
			    </select>
		    </li>
		    <!-- 
		    <li>
		    	<label>会员等级ID：</label>
		    	<input name="memberLevelId" type="text" class="scinput input-lg" value="${(user.memberLevelId)!""}"  autocomplete="off" />
		    	<i><font class="font-red">*</font></i>
		    </li>
		    <li>
		    	<label>会员等级名称：</label>
		    	<input name="memberLevelName" type="text" class="scinput input-lg" value="${(user.memberLevelName)!""}"  autocomplete="off" />
		    	<i><font class="font-red">*</font></i>
		    </li>
		     -->
		    <li>
		    	<label>地&ensp;&ensp;址：</label>
		    	<input name="address" type="text" class="scinput input-lg" value="${(user.address)!""}"  autocomplete="off" />
		    </li>
		    <li>
		    	<label>&nbsp;</label>
		    	<#if !op?? || op!="view">
		    	<input id="submitBtn" type="button" class="btn" value="提交"/>&emsp;
		    	</#if>
		    	<input id="cancelBtn" type="button" class="btn" value="返回"/>
		    </li>
	    </ul>
	</form>
</body>
<script type="text/javascript" src="/js/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="/js/commonAdd.js"></script>
</html>